package ch8;

public class Zuoye5 {//5:定义一个double类型的数组，长度是8，求数组中所有数的积
    public static void main(String[] args) {
        double[]a={12.5,16.3,1.7,20.1,0.6,10.6,32.79,5.0};
        double b=1;
        for(int i=0;i<a.length;i++){
            b*=a[i];
        }
        System.out.println(b);
    }
}
